package nl.ou.bls.server;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.repackaged.com.google.common.base.Flag.Date;
@PersistenceCapable
public class DataEntity {



	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
			Long id;

	@Persistent
	private Date starttime;

	@Persistent
	private Date endtime;
	
	@Persistent
	private String email;

	@Persistent
	private int score;
	
	@Persistent
	private boolean hasfinished;
	
	/////////////////////////////////////////////////////////////////
	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public long getId() {
		return id.longValue();
	}

	public void setId(long id) {
		this.id = new Long(id);
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	public boolean getHasfinished(){
		return hasfinished;
	}
	
	public void setHasfinished(boolean hasfinished) {
		this.hasfinished = hasfinished;
	}
}
